VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Bitblt Load Striaght to Mem [Animation

Josh Nixon  (6 Submissions)   Graphics   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This code will load a picture in mem on form load. Its show how also to do an animation with bitblt. Loading it in memory not only makes fps faster but the program itself.

Assumes
This code will load a picture in mem on form load. Its show how also to do an animation with bitblt. Loading it in memory not only makes fps faster but the program itself.

Returns
Satafaction

API Declarations
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function SelectObject Lib "gdi32" (ByVal hdc As Long, ByVal hObject As Long) As Long
Private Declare Function DeleteDC Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function DeleteObject Lib "gdi32" (ByVal hObject As Long) As Long
Private Declare Function CreateCompatibleBitmap Lib "gdi32" (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Const SRCAND = &H8800C6
Const SRCPAINT = &HEE0086

Rate Bitblt Load Striaght to Mem [Animation (6(6 Vote))

Download Bitblt Load Striaght to Mem [Animation

Bitblt Load Striaght to Mem [Animation Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters